package iq.math;

import java.util.Random;

public class Test {

	/**
	 *      
	 * @throws NullPointerException
	 * @throws Exception
	 */
	public void aa() throws NullPointerException, Exception {
		
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		System.out.println(Math.abs(Integer.MIN_VALUE));//Integer.MIN_VALUE的abs还是Integer.MIN_VALUE
		System.out.println(Math.abs(Integer.MIN_VALUE)%9);//非2的倍数，结果为负数
		
		long startTime = System.currentTimeMillis();
		Long sum = 0L;
		for (long i=0; i<Integer.MAX_VALUE; i++) {
			sum += i;
		}
		System.out.println((System.currentTimeMillis()-startTime)/1000);
		
		Random rnd = new Random();
		for (int i=0; i< 2; i++) {
			System.out.println(rnd.nextInt(100));
		}
	}

}
